import { getMiniprogramTemplate, publishMiniprogram } from '@/api/miniprogram'
import type { EnumDto } from '@/api/types'

export async function createOptions() {
    const res = await getMiniprogramTemplate()
    const filterPage = res?.lineContent?.pages?.filter(i => i.type?.startsWith('customPage')) || []
    const options = filterPage?.map(i => {
        return {
            label: i.name,
            value: i.type
        }
    })
    return options ?? []
}